﻿using FDStudio.Core.Entities;
using FDStudio.Core.Entities.Enums;
using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Config
{
    /*
     CreatedOn: 2018-01-27
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 数据库连接配置
    /// </summary>
    public class DbConnectionConfig : IDbConnectionString
    {
        public DatabaseType DatabaseType { get; set; }

        public string Name { get; set; }

        public string ConnectionString { get; set; }

        /// <summary>
        /// 主要用于redis，数据库索引
        /// </summary>
        public int DatabaseIndex { get; set; }

        /// <summary>
        /// 数据库读写类型
        /// </summary>
        public DatabaseOperType DatabaseOperType { get; set; }

        /// <summary>
        /// 是否启用（默认启用）
        /// </summary>
        public bool IsEnable { get; set; } = true;
    }
}
